package com.thread;

import java.util.concurrent.*;

public class Thread3 implements Callable<String> {
    @Override
    public String call() throws Exception {
        return "我是多线程";
    }

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService es = Executors.newFixedThreadPool(100);
         Future<String>  result =  es.submit(new Thread3());
        System.out.println(result.get());
    }
}
